import 'dart:async';

import 'package:check_app/api/request.dart';
import 'package:check_app/model/version.dart';

const VERSION_PATH = '/appUpgrade/lastOne';

///版本信息
class VersionDao {
  static Future fetch() async {
    final response = await Request().get(VERSION_PATH, queryParameters: {});
    return VersionResult.fromJson(response);
  }
}
